package cn.ixinjiu.libraryMangement.service;

import cn.ixinjiu.libraryMangement.entity.BorrowInfo;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by XinChen on 2023-05-12
 *
 * @TODO
 */
public interface IBorrowInfoService {

    List<BorrowInfo> borrowsInfo();

    List<BorrowInfo> getBorrowsInfoByUserId(int userId);

    int count();

    int borrowInfoDel(int id);

    int borrowInfoDelByBookId(int bookId);

    int borrowUpd(BorrowInfo borrowInfo);

    int borrowAdd(BorrowInfo borrowInfo);

    BorrowInfo getBorrowInfoById(int id) throws SQLException;
}
